package com.generator.controller;

import com.generator.mode.LeaderInfo;

public interface LeaderService {

    LeaderInfo electLeader();

    Integer incrementEpoch();

    Integer getEpoch();

    boolean isLeader();

    LeaderInfo getLeader();

    void checkAndWaitElection();
}
